package com.example.demo.service;

import com.example.demo.entity.Device;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;


/**
 * @Date:2021/7/1 22:30
 * @Author:郑伟
 * @Version:1.1.0
 */
@Service
public interface DeviceService {
    Device saveDevice(Device device);
    Optional<Device> findById(Integer id);
// Device findById(Integer id);
    List<Device> findAll();
    Page<Device> findByPage(int pageIndex, int pageSize);

    int delete(Device student);
    int delete(Integer id);
}
